//package com.salesmanager.core.modules.sms;
//
//import com.salesmanager.core.modules.taobao.TaobaoClientFactory;
//import com.taobao.api.ApiException;
//import com.taobao.api.TaobaoClient;
//import com.taobao.api.request.AlibabaAliqinFcSmsNumSendRequest;
//import com.taobao.api.response.AlibabaAliqinFcSmsNumSendResponse;
//import org.springframework.stereotype.Service;
//
///**
// * Created by Liutong on 5/14/16.
// * 短信服务 阿里大鱼实现
// */
//@Service("SmsServiceDayu")
//public class SmsServiceDayuImpl extends AbstractSmsService implements SmsService {
//
//    private static final String URL = "https://eco.taobao.com/router/rest";
//
//    private static final String APP_KEY = "23365086";
//
//    private static final String SECRET = "e4fe627603cf8b59578d354a72a13d41";
//
//
//    @Override
//    public void send(String signName,String telPhone, SmsTemplate smsTemplate, String param) {
//        TaobaoClient client = TaobaoClientFactory.buildDayuClient();
//        AlibabaAliqinFcSmsNumSendRequest req = new AlibabaAliqinFcSmsNumSendRequest();
//        req.setSmsType("normal");
//        req.setSmsFreeSignName(signName);
//        req.setSmsParamString(param);
//        req.setRecNum(telPhone);
//        req.setSmsTemplateCode(smsTemplate.getCode());
//        AlibabaAliqinFcSmsNumSendResponse rsp = null;
//        try {
//            rsp = client.execute(req);
//            System.out.println(rsp.getBody());
//        } catch (ApiException e) {
//            e.printStackTrace();
//        }
//    }
//}
